﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="bbscata.aspx.cs"
    Inherits="chatblog.bbscata" Title="老友故事" %>
<%@ Register Src="login/login.ascx" TagName="login" TagPrefix="uc1" %>
<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Stylesheet1.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function selectButtonClick(textboxid)
        {           
            window.open ('../bbs/selectarea.aspx'+'?id='+textboxid,'dd','height=400, width=600, top=100,left=200, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
        }
        function selectButtonClickzhiding(textboxid)
        {           
            window.open ('../bbs/selbbszhiding.aspx'+'?id='+textboxid,'dd','height=400, width=600, top=100,left=200, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no');
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="background-image: url(../img/background.jpg); background-position: left;
        background-repeat: repeat-x; vertical-align: middle; line-height: 25px;">
        <table style="width: 100%;">
            <tr>
                <td class="oa">
                    <a href="http://www.f980.com" target="_blank">藏宝网</a>

                </td>
                <td style="width: 500px; text-align: right;">
                    <uc1:login ID="login1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    <div style="width: 100%; height: 100px;">
<table style="width:100%"><tr>
    <td>
    <asp:Literal ID="Literal_logolink" runat="server"></asp:Literal>
    </td>
    <td style="text-align:right">
        <asp:Literal ID="Literal_adv1" runat="server"></asp:Literal>
    </td>
    </tr></table>
    </div>
    <div style="width: 100%; height: 60px; background-image: url(../images/menu_bg.gif);
        background-position: top; background-repeat: repeat-x; border-top-color: Gray;
        border-top-width: 1px; border-top-style: solid; border-bottom-color: Gray; border-bottom-width: 1px;
        border-bottom-style: solid;">
        <table style="width: 100%; margin-top: 3px;">
            <tr>
                <td>
                    <asp:Panel ID="Panel_area" runat="server">
                        <asp:Button ID="Button_all" runat="server" Text="全部区域" OnClick="Button_all_Click" />
                        <asp:Button ID="Button_bj" runat="server" Text="北京" OnClick="Button_bj_Click" />
                        <asp:Button ID="Button_sh" runat="server" Text="上海" OnClick="Button_sh_Click" />
                        <asp:Button ID="Button_gz" runat="server" Text="广东" OnClick="Button_gz_Click" />
                        <asp:Button ID="Button_qt" runat="server" Text="其他" OnClick="Button_qt_Click" />
                        <asp:Label ID="Label_area" runat="server" Text="当前区域:全部"></asp:Label>
                    </asp:Panel>
                    <asp:HyperLink ID="HyperLink_link" runat="server" NavigateUrl="~/bbs.html">老友故事社区</asp:HyperLink>
                    <asp:Literal ID="Literal_link" runat="server"></asp:Literal>
                </td>
                <td style="width: 330px;">
                    <%--设置 &nbsp; 我的帖子 &nbsp;我的回帖&nbsp;用户中心&nbsp;搜索&nbsp;查看新帖&nbsp;<br />--%>
                    <%--<asp:Label ID="Label_lastvisit" runat="server" Text="你还未登录,亲登陆."></asp:Label>--%>
                    今日:<asp:Label ID="Label_today" runat="server" Text="0"></asp:Label>, 昨日:<asp:Label
                        ID="Label_yestoday" runat="server" Text="0"></asp:Label>, 总数:<asp:Label ID="Label_sum"
                            runat="server" Text="0"></asp:Label>
                    <br />
                    <a href="bbs/search.aspx">搜索论坛</a>
                    <asp:Label ID="Label_keyongjifen" runat="server" Text="可用分:0" Visible="false"></asp:Label>
                    <asp:Label ID="Label_zhuanjiajifen" runat="server" Text="专家分:0" Visible="false"></asp:Label>
                    <asp:Label ID="Label1_fatieshu" runat="server" Text="发帖数:0" Visible="false"></asp:Label>
                    <asp:Label ID="Label1_huitieshu" runat="server" Text="回帖数:0" Visible="false"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div>
    <asp:Literal ID="Literal_banzhu" runat="server"></asp:Literal></div>
    <asp:Literal ID="Literal_adv2" runat="server"></asp:Literal>
    <div>
        <div style="margin-top: 10px; margin-bottom: 10px;">
        <asp:GridView ID="GridView_in" runat="server" DataKeyNames="cbcataid" Width="100%"
                            BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" AutoGenerateColumns="False"
                            CaptionAlign="Top" CellPadding="0" GridLines="None">
                            <Columns>
                                <asp:TemplateField >
                                    <ItemTemplate>
                                    
                                        <div style="width: 100%; height: 56px; vertical-align: middle;  padding-top:5px;
                                            background-image: url(../images/forum1.gif); 
                                            border-bottom-color: #C1C1C1; border-bottom-width: 1px;border-bottom-style: solid;  background-position: left;  line-height:17px;
                                            background-repeat:repeat; background-color: #F2F2F2;">
                                            <table style="width:100%"><tr ><td style="width:50px;"></td><td>
                                            <a href='<%#ResolveUrl("~/bbscata/") +Eval("cbcataid")+".html"%>' style=" text-decoration: none;"><span style="font-weight: bold;  color: Black; ">
                                                    <%#Eval("cbname")%></span></a><br />
                                                    <span style=" color:Gray;"><%#Eval("jcdesc").ToString()%></span>
                                                    <br />
                                                    <span style=" color:Gray;">
                                                    <%#RuleCode.Table.cbcata.getbanzhulink(Eval("cbcataid").ToString())%></span>
                                                    </td></tr></table>
                                                    </div>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; vertical-align: middle; background-image: url(../images/cat_bg.gif);
                                            line-height: 26px; background-position: left; background-repeat: no-repeat; background-color: #FF9900;">
                                            <span style="font-weight: bold; color: White;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;版块</span></div>
                                        </div>
                                    </HeaderTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-Width="70px">
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; background-image: url(../images/altbg1.gif);
                                            padding-top:5px;
                                            border-bottom-color: #C1C1C1; border-bottom-width: 1px; border-bottom-style: solid;
                                            background-color: #F2F2F2; background-position: left; background-repeat: repeat-x;
                                            background-color: White;">
                                            <br />
                                            <%#chatblog.zfunction.getchatroomlink("2",Eval("RECID").ToString())%>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                                            background-color: #FF9900;">
                                            <span style="font-weight: bold; color: White;">聊天室</span></div>
                                        </div>
                                    </HeaderTemplate>
                                    <ItemStyle Width="70px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; background-image: url(../images/altbg1.gif);
                                            padding-top:5px;
                                            border-bottom-color: #C1C1C1; border-bottom-width: 1px; border-bottom-style: solid;
                                            background-color: #F2F2F2; background-position: left; background-repeat: repeat-x;
                                            ">
                                            <br />
                                            <%#Eval("zhutishu").ToString()%></div>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                                            background-color: #FF9900;">
                                            <span style="font-weight: bold; color: White;">主题</span></div>
                                        </div>
                                    </HeaderTemplate>
                                    <ItemStyle Width="50px"></ItemStyle>
                                </asp:TemplateField>
                                
                                <asp:TemplateField ItemStyle-Width="50px">
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; background-image: url(../images/altbg1.gif);
                                            padding-top:5px;
                                            border-bottom-color: #C1C1C1; border-bottom-width: 1px; border-bottom-style: solid;
                                            background-color: #F2F2F2; background-position: left; background-repeat: repeat-x;
                                            background-color: White;">
                                            <br />
                                            <%#Eval("fatieshu").ToString()%></div>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                                            background-color: #FF9900;">
                                            <span style="font-weight: bold; color: White;">帖子</span></div>
                                        </div>
                                    </HeaderTemplate>
                                    <ItemStyle Width="50px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-Width="260px">
                                    <ItemTemplate>
                                        <div style="width: 100%; height: 56px; vertical-align: middle; background-image: url(../images/altbg1.gif);
                                            padding-top:5px;
                                            border-bottom-color: #C1C1C1; border-bottom-width: 1px; border-bottom-style: solid;
                                            background-color: #F2F2F2; background-position: left; background-repeat: repeat-x;
                                            background-color: White;">
                                            <a href='<%#ResolveUrl("~/bbsview/") +Eval("lastlistid")+".html"%>'>
                           <%#RuleCode.Table.cbuser.CutString(  Eval("cbtitle").ToString(),36,"..")%>
                           </a><br />
                                           <a href='<%#ResolveUrl("~/blog/") +Eval("userrecid")+".html"%>' target="_blank">
                                                <%#chatblog.zfunction.getnick(Eval("cbuserid").ToString())%></a>
                                            <br />
                                            <%#Eval("lastcreatedate").ToString()%></div>
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                                            background-color: #FF9900; border-right-color: Gray; border-right-width: 1px;
                                            border-right-style: solid;">
                                            <span style="font-weight:bold;  color: White;">最后发表</span></div>
                                        </div>
                                    </HeaderTemplate>
                                    <ItemStyle Width="260px"></ItemStyle>
                                </asp:TemplateField>
                            </Columns>
                            <HeaderStyle HorizontalAlign="Left" BorderWidth="0px" Height="26px"></HeaderStyle>
                        </asp:GridView>
            
        </div>
    </div>
    <div>
        全部帖子 &nbsp;精华帖子 &nbsp;<asp:Literal ID="Literal_ft" runat="server"></asp:Literal>
        <asp:GridView ID="GridView_list" runat="server" Width="100%" HeaderStyle-Height="26px"
            HeaderStyle-BorderWidth="0px" HeaderStyle-HorizontalAlign="Left" AutoGenerateColumns="False"
            CaptionAlign="Top" CellPadding="0" GridLines="None" DataKeyNames="RECID">
            <Columns>
                <asp:TemplateField ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid"
                    ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox_sel" runat="server" Visible="true" />
                        &nbsp;
                        <%#RuleCode.Table.cblist.dinglink(Eval("shunxu").ToString())%>
                        <%#RuleCode.Table.cblist.jinghualink(Eval("jinghua").ToString())%>
                        <a href='<%#ResolveUrl("~/bbsview/") +Eval("cblistid")+".html"%>'>
                            <%#Eval("cbtitle")%></a>
                    </ItemTemplate>
                    <HeaderTemplate>
                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;
                            background-image: url(../images/cat_bg.gif); background-position: left; background-repeat: no-repeat;
                            background-color: #FF9900;">
                            <span style="font-weight:bold; color: White;">&nbsp;&nbsp;&nbsp;标题</span></div>
                        </div>
                    </HeaderTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField ItemStyle-Width="70px" ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-HorizontalAlign="Center"
                    ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                        <%#Eval("fenshu").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;  text-align:center;
                            background-color: #FF9900;">
                            <span style="font-weight: bold; color: White;">分数</span></div>
                    </HeaderTemplate>
                    <ItemStyle Width="70px"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width="70px" ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" ItemStyle-HorizontalAlign="Center"
                    ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                        <%#Eval("huifushu").ToString()%>/<%#Eval("chakanshu").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle; text-align:center;
                            background-color: #FF9900;">
                            <span style="font-weight: bold; color: White;">回复/查看</span></div>
                    </HeaderTemplate>
                    <ItemStyle Width="70px"></ItemStyle>
                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-Width="70px" ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" 
                    ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                            <%#chatblog.zfunction.getchatroomlink("1",Eval("RECID").ToString())%>

                    </ItemTemplate>
                    <HeaderTemplate>
                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle; <%--text-align:center;--%>
                            background-color: #FF9900;">
                            <span style="font-weight: bold; color: White;">聊天室</span></div>
                    </HeaderTemplate>
                    <ItemStyle Width="70px"></ItemStyle>
                </asp:TemplateField>
                
                <asp:TemplateField ItemStyle-Width="150px" ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" 
                    ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                        <a href='<%#ResolveUrl("~/blog/") +Eval("userrecid")+".html"%>' target="_blank">
                            <%#chatblog.zfunction.getnick(Eval("cbuserid").ToString())%></a>
                      <br />
                        <%#Eval("jccreatedate").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle; <%--text-align:center;--%>
                            background-color: #FF9900;">
                            <span style="font-weight: bold; color: White;">作者</span></div>
                    </HeaderTemplate>
                    <ItemStyle Width="150px"></ItemStyle>
                </asp:TemplateField>
                
                
                <asp:TemplateField ItemStyle-Width="210px" ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid" 
                    ItemStyle-BorderWidth="1px">
                    <ItemTemplate>
                        <a href='<%#ResolveUrl("~/blog/") +Eval("recid2")+".html"%>' target="_blank">
                            <%#chatblog.zfunction.getnick(Eval("cbuserid2").ToString())%></a>
                        <br />
                        <%#Eval("jccreatedate2").ToString()%>
                    </ItemTemplate>
                    <HeaderTemplate>
                        <div style="width: 100%; height: 26px; line-height: 26px; vertical-align: middle;<%-- text-align:center;--%>
                            background-color: #FF9900;">
                            <span style="font-weight: bold; color: White;">最后回复</span></div>
                    </HeaderTemplate>
                    <ItemStyle Width="210px"></ItemStyle>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle />
        </asp:GridView>
        <cc1:WebPager ID="WebPager_list" runat="server" ControlToPaginate="GridView_list"
            PageSize="30" OnPageIndexChanged="WebPager_list_PageIndexChanged" />
        <asp:Panel ID="Panel_manage" runat="server" Visible="false">
            <asp:CheckBox ID="CheckBox_un" runat="server" Text="反选" OnCheckedChanged="CheckBox_un_CheckedChanged"
                AutoPostBack="True" />
            <asp:Button ID="Button_del" runat="server" Text="删除" OnClick="Button_del_Click" />
            <asp:Button ID="Button_jinghua" runat="server" Text="设置精华" OnClick="Button_jinghua_Click" />
            <asp:Button ID="Button_unjinghua" runat="server" Text="取消精华" OnClick="Button_unjinghua_Click" />
            <asp:Button ID="Button_czhiding" runat="server" Text="设置置顶" OnClick="Button_czhiding_Click" />
            <asp:Button ID="Button_zhiding" runat="server" Text="其他版块置顶" OnClick="Button_zhiding_Click" />
            <asp:Button ID="Button_unzhiding" runat="server" Text="取消置顶" OnClick="Button_unzhiding_Click" />
            <asp:Button ID="Button_indefault" runat="server" Text="设置首页" OnClick="Button_indefault_Click" />
            <asp:Button ID="Button_outdefault" runat="server" Text="取消首页" OnClick="Button_outdefault_Click" />
        </asp:Panel>
    </div>
    <asp:Literal ID="Literal_adv3" runat="server"></asp:Literal>
</asp:Content>
